#pragma once
#include "Model.h"
#include "Transform3D.h"

class Plane :
	public Model
{
public:
	Plane();
	Plane(int w, int h, float tileSize);
	virtual ~Plane();

	void Update(float dt);
	void Draw(ID3DXSprite* sprite, D3DXMATRIX& view, D3DXMATRIX& proj);

protected:
	void BuildVertexBuffer();
	void BuildIndexBuffer();

private:
	float tileSize;
	int width, height;
	int numFaces, numVertices;
	float currentTime;
	
	D3DXHANDLE mhTime;
	Transform3D transform;
};

